//
//  UIImage+SFEmoticon.m
//  SFEmoticon
//
//  Created by 许博 on 16/7/18.
//  Copyright © 2016年 许博. All rights reserved.
//

#import "UIImage+SFEmoticon.h"
#import "NSBundle+SFEmoticon.h"

@implementation UIImage (SFEmoticon)
+ (UIImage *)sf_imageNamed:(NSString *)name {
    return [UIImage imageNamed:name
                      inBundle:[NSBundle sf_emoticonBundle]
 compatibleWithTraitCollection:nil];
}

- (UIImage *)sf_resizableImage {
    return [self resizableImageWithCapInsets:
            UIEdgeInsetsMake(self.size.height * 0.5,
                             self.size.width * 0.5,
                             self.size.height * 0.5,
                             self.size.width * 0.5)];
}
@end
